package com.gcu.admin.api.api;

import com.gcu.admin.api.dto.OAuth2ClientDTO;
import com.gcu.common.base.result.SysResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ system:Mac
 * @ author:lin tingfeng
 * @ data:2023/9/27 15:39
 * @ package_name:com.gcu.admin.api.api
 * @ project_name:SpringCloud-Oauth2
 * @ desc: Oauth认证Feign调用
 */
@FeignClient(value = "gcu-admin",contextId = "oauth-client")
public interface OAuthClientFeignClient {

    @GetMapping("/api/oauth-clients/getOauth2ClientById")
    SysResult<OAuth2ClientDTO> getOauth2ClientById(@RequestParam String clientId);

}
